package com.dcy.znoa.domain.estate;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 物业建议
 * </p>
 *
 * @author cook
 * @since 2018-05-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("estate_advice")
public class EstateAdvice extends Model<EstateAdvice> {

    private static final long serialVersionUID = 1L;

    /**
     * 物业建议ID
     */
	@TableId(value="esad_id", type= IdType.AUTO)
	private Long esadId;
    /**
     * 物业ID
     */
	@TableField("es_id")
	private Long esId;
    /**
     * 公司ID
     */
	@TableField("comp_id")
	private Long compId;
    /**
     * 发起人ID
     */
	@TableField("send_oper_id")
	private Long sendOperId;
    /**
     * 回复人ID
     */
	@TableField("reply_oper_id")
	private Long replyOperId;
    /**
     * 发起消息
     */
	@TableField("send_message")
	private String sendMessage;
    /**
     * 回复消息
     */
	@TableField("reply_message")
	private String replyMessage;
    /**
     * 记录时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 创建人id
     */
	@TableField("create_oper_id")
	private Long createOperId;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 创建人id
     */
	@TableField("update_oper_id")
	private Long updateOperId;
    /**
     * 有效标记
     */
	@TableField("valid_flag")
	private Integer validFlag;

	@TableField(exist = false)
	String operName;

	@TableField(exist = false)
	String phoneNo;

	@TableField(exist = false)
	String compName;

	@TableField(exist = false)
	String depName;

	//附件 来自 AddStoreFileModel
//	@TableField(exist = false)
//	private String fileName;
	@TableField(exist = false)
	private String remoteFileName;//以逗号分隔
//	@TableField(exist = false)
//	private String downloadPath;


	@Override
	protected Serializable pkVal() {
		return this.esadId;
	}

}
